package com.example.yimai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yimai.dto.OrderRequestDTO;
import com.example.yimai.dto.PageResponseDTO;
import com.example.yimai.entity.Order;
import com.example.yimai.entity.OrderDetail;

import java.util.List;

public interface OrderService extends IService<Order> {

    public PageResponseDTO<Order> queryOrder(String token,String keyword, int pageNum, int pageSize);

    public String createOrder(String token, List<OrderRequestDTO> requests, String address);

    public List<OrderDetail> getDetails(String orderId);
    
    public String pay(String serialNumber);
    
    public String cancel(String serialNumber);

    public String verify(String serialNumber);

}